import { request } from "./request";
export function register(data: Object) {
  return request({
    url: "/api/user/register",
    method: "post",
    data,
  });
}
export function login(data: object) {
  return request({
    url: "/api/auth/login",
    method: "post",
    data,
  });
}

export function getUser() {
  return request({
    url: "/api/user",
    method: "get",
  });
}
